import {
    ElButton, ElMessage, ElForm, ElFormItem, ElInput, ElContainer, ElHeader, ElAside, ElMain,
    ElMenu, ElMenuItem, ElMenuItemGroup, ElBreadcrumb,ElBreadcrumbItem,
    ElCard,ElRow,ElCol,ElSelect,ElTable,ElTableColumn,ElPagination,ElDialog,
    ElTreeSelect
} from 'element-plus'
import lang from 'element-plus/lib/locale/lang/zh-cn'
import locale from 'element-plus/lib/locale'


export default (app) => {
  locale.use(lang)
  app.component(ElButton.name, ElButton);
  app.component(ElForm.name,ElForm);
  app.component(ElFormItem.name,ElFormItem);
  app.component(ElInput.name,ElInput);
  app.component(ElContainer.name,ElContainer);
  app.component(ElHeader.name,ElHeader);
  app.component(ElAside.name,ElAside);
  app.component(ElMain.name,ElMain);
  app.component(ElMenu.name,ElMenu);
  app.component(ElMenuItem.name,ElMenuItem);
  app.component(ElMenuItemGroup.name,ElMenuItemGroup);
  app.component(ElBreadcrumb.name,ElBreadcrumb);
  app.component(ElBreadcrumbItem.name,ElBreadcrumbItem);
  app.component(ElCard.name,ElCard);
  app.component(ElRow.name,ElRow);
  app.component(ElCol.name,ElCol);
  app.component(ElSelect.name,ElSelect);
  // app.component(ElOption.name,ElOption);
  app.component(ElTable.name,ElTable);
  app.component(ElTableColumn.name,ElTableColumn);
  app.component(ElPagination.name,ElPagination);
  app.component(ElDialog.name,ElDialog);
  app.component(ElTreeSelect.name,ElTreeSelect);
  app.config.globalProperties.$message = ElMessage
}
